//
//  TestProblem2099.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/29.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

final class TestProblem2099: XCTestCase {

    var problem = Problem2099()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem2099_Case1() throws {
        XCTAssertEqual(problem.maxSubsequence([2,1,3,3], 2), [3, 3])
    }
    
    func testProblem2099_Case2() throws {
        XCTAssertEqual(problem.maxSubsequence([-1,-2,3,4], 3), [-1,3,4])
    }
    
    func testProblem2099_Case3() throws {
        XCTAssertEqual(problem.maxSubsequence([3,4,3,3], 2), [3,4])
    }
    
    func testProblem2099_Case4() throws {
        XCTAssertEqual(problem.maxSubsequence([50,-75], 2), [50,-75])
    }
}
